import React from 'react'
import { Table } from 'antd'
import PropTypes from 'prop-types'
const { Column } = Table;
class IcsComponentsIdleGrid extends React.Component {
    state = {
    }
    componentDidMount () {
    }
    render () {
        return (
            <div className="manager-grid">
                <Table
                    dataSource={this.props.list}
                    pagination={false}
                    bordered
                    rowKey="id"
                >
                    <Column
                        title="门店名称"
                        dataIndex="store_name"
                    />
                    <Column
                        title="联系人"
                        dataIndex="contact"
                    />
                    <Column
                        title="联系电话"
                        dataIndex="store_tel"
                    />
                    <Column
                        title="门店_省"
                        dataIndex="province_name"
                    />
                    <Column
                        title="门店_市"
                        dataIndex="city_name"
                    />
                    <Column
                        title="门店_区"
                        dataIndex="district_name"
                    />
                    <Column
                        title="门店_详细地址"
                        dataIndex="address"
                    />
                    <Column
                        title="营业时间"
                        dataIndex="open_period"
                    />
                    <Column
                        title="开业状态"
                        dataIndex="store_status"
                        render={(text) => {
                            return text === '1' ? '开业' : '未开业'
                        }}
                    />
                </Table>
            </div>
        )
    }
}

IcsComponentsIdleGrid.propTypes = {
    onCreate: PropTypes.func,
    onIdleDetail: PropTypes.func,
    list: PropTypes.array
}
export default IcsComponentsIdleGrid
